package top.codedance.iotp.manage.client.cmdentity;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.internal.Lists;

import java.util.List;

public class BaseCli {
    @Parameter
    public List<String> parameters = Lists.newArrayList();

    public List<String> getParameters() {
        return parameters;
    }

    public void setParameters(List<String> parameters) {
        this.parameters = parameters;
    }

    public String getCommand(){
        return (String)parameters.get(0);
    }

    public List<String> getDynamicParams(){
        return parameters.subList(1, parameters.size());
    }
}
